@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './btn.scss';
//护眼色主题
@import './eleshisld.scss';
//黑色主题
// @import './black.scss';
// 粉色 girlPink
@import './girlPink.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Arial,
    sans-serif;
}
* {
  margin: 0;
  padding: 0;
}
label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}
.el-col {
  font-size: 14px;
}

// 改变滚动条的样式
::-webkit-scrollbar {
  width: 8px;
  height: 5px;
  position: absolute;
}
::-webkit-scrollbar-thumb {
  background-color: #409eff;
}
::-webkit-scrollbar-track {
  background-color: #ddd;
}

// 取消input 属性为number 时后面有箭头样式
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
input[type='number'] {
  -webkit-appearance: textfield;
}

// 改变指定 input 中的文字颜色
.t-red {
  & > input {
    color: red !important;
  }
}
.iserr {
  & > input {
    border-color: #f56c6c !important;
  }
}
.el-table--small {
  font-size: 14px;
}
// 改变全局禁用之后 input 中文字的颜色, 可随时注销
.el-input.is-disabled .el-input__inner {
  &:disabled {
    // color: red;
    color: #606266;
  }
}
.el-drawer {
  .el-drawer__header {
    text-align: center;
  }
}
.el-drawer__body {
  padding-left: 15px;
  .el-switch {
    margin-bottom: 10px;
  }
}
// 取消指定 input 的边框
.b-0 {
  & > input {
    border: none;
  }
}

.nodatalist {
  color: #909399;
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  font-size: 14px;
  text-align: center;
}

// 设置el-table 表头颜色的样式
.heard-bg {
  & > .el-table__header-wrapper {
    & > table {
      & > thead {
        & > tr {
          th {
            background: #f5f7fa;
          }
        }
      }
    }
  }
}

// 设置富文本框的样式

.noticeTitle {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
}
.noticeBody {
  .el-dialog__body {
    padding: 0px 20px 10px 20px;
  }
}

.noticeUser {
  text-align: right;
  // padding-bottom: 12px;
  color: #999;
  border-bottom: 1px solid #f6f6f6;
}

.pageLength {
  text-align: right;
  padding-right: 65px;
  font-size: 12px;
  color: #abadb3;
}
.quill-editor {
  line-height: normal;
  .ql-toolbar {
    border: 1px solid #dcdfe6;
    border-radius: 4px 4px 0 0;
    .ql-formats {
      margin-right: 0;
      & > button {
        border: 1px solid #dcdfe6;
        margin-right: 5px;
        padding: 0px 2px;
      }
      & > .ql-active {
        border: 1px solid red !important;
      }
      & > span {
        border: 1px solid #dcdfe6;
        margin-right: 4px;
        padding: 0px 2px;
      }
      & > .ql-active {
        border: 1px solid #06c !important;
      }
      .ql-clean {
        margin-right: 0;
      }
      .ql-align,
      .ql-color,
      .ql-background {
        padding: 0;
        & > span {
          // border: 1px solid #DCDFE6;
          // margin-right: 4px;
          padding: 0px 2px;
        }
      }
    }

    .ql-font {
      width: 74px;
      position: relative;
      white-space: nowrap;
      // padding-right: 10px;
      // overflow: hidden;
      .ql-picker-label {
        width: 60px;
        padding-left: 2px;
        position: unset;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }
    .ql-size {
      width: 55px;
      position: relative;
      white-space: nowrap;
      .ql-picker-label {
        padding-left: 2px;
        width: 45px;
        position: unset;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }
  }
  .ql-container {
    .ql-editor.ql-blank::before {
      color: #c7cbd2;
      content: attr(data-placeholder);
      font-style: italic;
      left: 15px;
      pointer-events: none;
      position: absolute;
      right: 15px;
    }
    border: 1px solid #dcdfe6;
    border-radius: 0 0 4px 4px;
  }
}

#dialog_header {
  padding: 0 0 10px;
  display: block;
  margin: 0 auto;
}

.el-icon-success {
  color: #67c23a;
}

.dlog {
  &.el-dialog__header {
    border-bottom: 1px solid #dcdfe6 !important;
  }
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
  }
}
.listBox {
  ul {
    li {
      &:hover {
        background: #e4e7ed;
      }
    }
  }
}

code {
  background: #eef1f6;
  padding: 15px 16px;
  margin-bottom: 20px;
  display: block;
  line-height: 36px;
  font-size: 15px;
  font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
  a {
    color: #337ab7;
    cursor: pointer;
    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

.warn-content {
  background: rgba(66, 185, 131, 0.1);
  border-radius: 2px;
  padding: 16px;
  padding: 1rem;
  line-height: 1.6rem;
  word-spacing: 0.05rem;
  a {
    color: #42b983;
    font-weight: 600;
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.view-container {
  margin: 20px;
  background-color: #ffffff;
  overflow: hidden;
  padding: 0px 20px 50px 20px;
}

.common-top-container {
  background-color: #ffffff;
  margin: 20px;
  padding: 15px 20px;
}

.imp-admin-table >>> .cell > span {
  display: block;
  text-align: center;
}

.imp-main-container {
  margin: 20px;
  background-color: #ffffff;
  min-height: 400px;
}
.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(
    90deg,
    rgba(32, 182, 249, 1) 0%,
    rgba(32, 182, 249, 1) 0%,
    rgba(33, 120, 241, 1) 100%,
    rgba(33, 120, 241, 1) 100%
  );
  .subtitle {
    font-size: 20px;
    color: #fff;
  }
  &.draft {
    background: #d0d0d0;
  }
  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;
  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;
  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

.el-table th {
  color: #000;
  font-weight: bold;
  text-align: center;
}
.el-table td {
  text-align: center;
  padding: 8px 0;

  .el-button {
    padding: 5px;
  }
}

.el-button {
  padding: 10px 20px;
}
// ////////////////////////////////////////////////////////////////////////////////////////////////////////
.el-message-box--center {
}
.el-message-box {
  width: auto;
  min-width: 420px;
  padding-bottom: 25px;

  .el-message-box__header {
    padding: 25px 15px 10px;
    .el-message-box__title {
      font-weight: 600;
    }
  }
  .el-message-box__content {
  }
  .el-message-box__message {
    white-space: pre;
    p {
      color: #333;
      font-size: 16px;
    }
  }
  .el-message-box__btns {
    padding: 10px 15px 0;
  }

  .el-button {
    // border: none;
    letter-spacing: 3px;
  }
}

.el-message-box.success {
  //   background: #d5fcc1;
  .el-message-box__header {
    .el-message-box__title {
      color: #67c23a;
    }
  }
  .el-message-box__btns {
    .el-button--primary {
      color: #fff;
      background-color: #67c23a;
      border-color: #67c23a;
    }
  }
}
.el-message-box.warning {
  //   background: #ffdbc6;
  .el-message-box__header {
    .el-message-box__title {
      color: #e6a23c;
    }
  }
  .el-message-box__btns {
    .el-button--primary {
      color: #fff;
      background-color: #e6a23c;
      border-color: #e6a23c;
    }
  }
}
.el-message-box.error {
  //   background: #ffdbc6;
  .el-message-box__header {
    .el-message-box__title {
      color: #f56c6c;
    }
  }
  .el-message-box__btns {
    .el-button--primary {
      color: #fff;
      background-color: #f56c6c;
      border-color: #f56c6c;
    }
  }
}
/////////////////////////////////////////////////////////////////////////////////////////
// .el-message-box.success {
//   background: #f0f9eb;
//   .el-message-box__btns {
//     text-align: center;
//     > .el-button {
//       color: #333;
//       font-size: 14px;
//       background: #f0f9eb;
//       padding: 8px 18px;
//     }

//     > .el-button:hover {
//       background: #f0f9eb;
//     }
//   }
//   .el-message-box__content {
//     .el-message-box__message p {
//       color: #67c23a;
//       letter-spacing: 1px;
//       text-align: center;
//     }
//   }
// }
///////////////////////////////////////////////////////////////////////////////////////////////////
// .el-message-box.error {
//   background: #fdf6ec;
//   .el-message-box__header {
//     .el-message-box__title {
//       text-align: center;
//     }
//   }
//   .el-message-box__btns {
//     text-align: center;
//     > .el-button {
//       color: #333;
//       font-size: 14px;
//       background: #fdf6ec;
//       padding: 8px 18px;
//     }

//     > .el-button:hover {
//       background: #fdf6ec;
//     }
//   }
//   .el-message-box__content {
//     .el-message-box__message p {
//       color: #f56c6c;
//       letter-spacing: 1px;
//       text-align: center;
//     }
//   }
// }
// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
// 警告框样式
// .el-message-box.warning {
//   background: #fdf6ec;
//   .el-message-box__header {
//     .el-message-box__title {
//       text-align: center;
//     }
//   }
//   .el-message-box__btns {
//     text-align: center;
//     > .el-button {
//       color: #333;
//       font-size: 14px;
//       background: #fdf6ec;
//       padding: 8px 18px;
//     }

//     > .el-button:hover {
//       background: #fdf6ec;
//     }
//   }
//   .el-message-box__content {
//     .el-message-box__message p {
//       color: #e6a23c;
//       letter-spacing: 1px;
//       text-align: center;
//     }
//   }
// }

// 选中的tab-item的背景色
.el-dialog .el-tabs__item.is-top.is-active {
  background-color: #f2f6fb !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  // border-radius: 4px;
}
.el-dialog .el-tabs__header {
  margin: 0;
}
.el-dialog .el-tabs__content {
  background-color: #f2f6fb;
  padding: 15px;
  padding-bottom: 0;
  border-right: 1px solid #e4e7ed;
  border-bottom: 1px solid #e4e7ed;
  border-left: 1px solid #e4e7ed;
}
.el-dialog .el-tabs--card > .el-tabs__header .el-tabs__item.is-active {
  border-bottom-color: #f2f6fb;
}

// 选中的tab-item的下划线 隐藏
.el-tabs__active-bar.is-top {
  display: none !important;
}

.validrule-tabel {
  .el-tree,
  .el-radio-group {
    display: flex;
    flex-wrap: wrap;
    .el-tree-node,
    .el-radio {
      // background: red;
      flex-basis: 200px;
      display: flex;
    }
    .el-radio {
      width: 200px;
      height: 26px;
      padding-left: 24px;
      margin-right: 0;
      padding-top: 1px;
      align-items: center;
      .el-radio__label {
      }
    }
    .el-tree-node__label {
      margin-left: 10px;
    }
  }
}
.el-tree {
  .el-tree-node__content:hover {
    background-color: #ecf5ff;
  }
}

// 坐席首页 表格样式 调整
.homePage {
  /* 表头 */
  .el-table__header-wrapper .el-table__header thead tr th {
    padding: 6px 0;
  }
  /* 表内容 */
  .el-table__body-wrapper .el-table__body tbody tr td {
    padding: 4px 0;
  }
}
.title span i.el-icon-refresh {
  font-size: 20px;
  margin-right: 10px;
  animation: turnIcon 2s linear infinite;
}
